class SelectedSort:
    def __init__(self, list_target):
        self.__list = list_target

    def sort(self):
        for i in range(len(self.__list) - 1):
            min = i
            for j in range(i + 1, len(self.__list)):
                if self.__list[min] > self.__list[j]:
                    min = j
            if i != min:
                self.__list[i], self.__list[min] = self.__list[min], self.__list[i]

    def print(self):
        for item in self.__list:
            print(item, end=' ')
        print()


if __name__ == '__main__':
    selected_sort = SelectedSort([43, 4, 5, 2, 42, 89, 32, 67, 96])
    selected_sort.sort()
    selected_sort.print()
